<template>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        订单管理
        <small>管理您的订单</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-calendar-minus-o"></i> 订单管理</a></li>
        <li class="active">待处理订单</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="row">
        <div class="col-xs-12">

          <div v-for="order in orderList" :key="order.id" class="box box-default"
               style="border-radius: 15px;position: relative">
            <img alt="1" src="../../../public/img/pendingorder.png"
                 style="width: 60px;margin-left: 10px;margin-top: 10px;border-radius: 5px"/>
            <span style="margin-left: 10px;font-size: large;font-weight: bold">订单id：{{ order.id }}</span>
            <span style="position: absolute;left: 80px;top: 50px">下单者：{{ order.orderUser }}</span>
            <span style="position: absolute;left: 220px;top: 50px">总价：{{ order.price }}元</span>
            <div style="margin-left: 10px;margin-top: 10px">下单时间：{{ order.orderTime }}</div>
            <div style="margin-left: 10px;margin-top: 10px">收货地址：{{ order.orderLocation }}</div>
            <div style="margin-left: 10px;margin-top: 10px">联系电话：{{ order.orderPhone }}</div>
            <div>&nbsp;</div>
            <div style="float: right">
              <button class="btn btn-primary" style="position: absolute;margin-left: -20vw;margin-top: -170px"
                      onclick="changeType()" type="button">承接
              </button>
            </div>

          </div>

        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->

    <!-- 模态框 -->
    <div id="myModal" class="modal fade">
      <div class="modal-dialog modal-sm">
        <div class="modal-content">

          <!-- 模态框头部 -->
          <div class="modal-header">
            <h4 class="modal-title">提示</h4>
            <button class="close" data-dismiss="modal" type="button">&times;</button>
          </div>

          <!-- 模态框主体 -->
          <div class="modal-body">
            模态框内容..
          </div>

          <!-- 模态框底部 -->
          <div class="modal-footer">
            <button class="btn btn-secondary" data-dismiss="modal" type="button">关闭</button>
          </div>

        </div>
      </div>
    </div>

  </div>
  <!-- /.content-wrapper -->
</template>

<script>
export default {
  name: "PendingOrderManager",
  data() {
    return {
      orderList: this.GLOBAL.appData.orderList
    }
  }
}
</script>

<style scoped>

</style>
